// @ts-nocheck
import React from "react";
// import { Upload as FormilyUploadShowTable } from "@formily/antd";
import { UploadShowTable as FormilyUploadShowTable } from '@/componentCustom'
import { createBehavior, createResource,GlobalRegistry } from "@designable/core";
import { DnFC } from "@designable/react";
import { createFieldSchema } from "../Field";
import { AllSchemas } from "@/core/schemas";
import { AllLocales } from "@/core/locales";

export const UploadShowTable: DnFC<React.ComponentProps<typeof FormilyUploadShowTable>> = FormilyUploadShowTable;
// export const UploadShowTable: DnFC<React.ComponentProps<typeof FormilyUploadShowTable>> = (props) => {
//   return (
//     <FormilyUploadShowTable {...props} title={<span data-content-editable="x-component-props.textContent">{props.title}</span>}>
//       {props.children}
//     </FormilyUploadShowTable>
//   );
// };

UploadShowTable.Behavior = createBehavior(
  {
    name: "UploadShowTable",
    extends: ["Field"],
    selector: (node) => node.props["x-component"] === "UploadShowTable",
    designerProps: {
      propsSchema: createFieldSchema(AllSchemas.UploadShowTable),
    },
    designerLocales: AllLocales.UploadShowTable,
  }
);


UploadShowTable.Resource = createResource(
  {
    icon: "UploadSource",
    elements: [
      {
        componentName: "Field",
        props: {
          type: "Array<object>",
          title: "UploadShowTable",
          "x-decorator": "FormItem",
          "x-component": "UploadShowTable",
          "x-component-props": {
            textContent: "UploadShowTable",
          },
        },
      },
    ],
  }
);